package com.dzx.design.creational.factorymethod;

/**
 * @author dzx
 * @ClassName:
 * @Description: 工厂方法
 * @date 2019年06月26日 16:24:35
 */
public class Test {

    public static void main(String[] args) {
        VideoFactory javaVideoFactory = new JavaVideoFactory();
        Video javaVideo = javaVideoFactory.getVideo();
        javaVideo.produce();

        VideoFactory pythonVideoFactory = new PythonVideoFactory();
        Video pythonVideo = pythonVideoFactory.getVideo();
        pythonVideo.produce();

        VideoFactory feVideoFactory = new FEVideoFactory();
        Video feVideo = feVideoFactory.getVideo();
        feVideo.produce();

    }
}

